<?php

class Install extends UI_MobilePage {

    public function __construct() {
	parent::__construct();

	$p = $this->createPage("Install Zenmo");

	
	$panel1 = new UI_CollapsiblePanel("Express install");
	
	$text .= "<h4>1) Download Zenmo</h4>";
	$text .= "<p>Download Zenmo and extract the content files to a webserver (Apache+PHP or IIS+PHP).</p>";

	$text .= "<h4>2) Access the html folder</h4>";
	$text .= "<p>Access the html folder, ex: http://localhost/zenmo/html  </p>";

	$panel1->add(new UI_Text($text));

	$p->add($panel1);

	$panel2 = new UI_CollapsiblePanel("Advanced install");

	$text = "<h4>1) Download Zenmo</h4>";
	$text .= "<p>Download Zenmo and extract the content files to disk.</p>";

	$text .= "<h4>2) Create a virtual host on http.conf file</h4>";
	$text .= "<p>Add a virtual host to html folder on zenmo instalation, ex:</p>";
	$text .= '<pre>

Alias /zenmo "c:/zenmo/html/"


&lt;Directory "c:/zenmo/html/"&gt;
    Options Indexes FollowSymLinks MultiViews
    AllowOverride all
        Order Deny,Allow
	Deny from all
	Allow from 127.0.0.1
&lt;/Directory&gt;
	</pre>';

	$text .= "<h4>3) Restart Apache</h4> <p>Restart the apache webserver to activate the virtual host.</p>";

	$text .= "<h4>3) Access the zenmo virtual host</h4> <p>Access http://localhost/zenmo</p>";

	$panel2->add(new UI_Text($text));

	$p->add($panel2);


	$p->addFooterButton(UI_Position::LEFT, "After install, read the tutorial", $this->getUrl("site:Tutorial"));
	


    }

}

?>